package com.ruoyi.system.domain.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class TInterfaceCategoryVo {

    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("父id")
    private Long parentId;
    @ApiModelProperty("祖级列表")
    private String ancestors;
    @ApiModelProperty("分类名称")
    private String name;
    @ApiModelProperty("显示顺序")
    private Integer orderNum;
    @ApiModelProperty("创建人")
    private String createBy;
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty("修改人")
    private String updateBy;
    @ApiModelProperty("修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private List<TInterfaceCategoryVo> children = new ArrayList<>();

}
